var express = require('express');
var router = express.Router();
var _ = require('underscore');
var bodyParser = require('body-parser');
/* GET users listing. */
router.post('/myinfo/photo', function(req, res, next) {
    res.setHeader('Access-Control-Allow-Origin', '*');
    res.setHeader("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
    const query = req.query;
    const debug = query.debug
    console.log("打印" + req);
    const obj = {
        code: 0,
        data: {
            server_time: _.now(),
            imageUrl: ''
        },
        msg: "OK"
    };
    debug == 1 ? res.jsonp(obj) : res.json(obj)

});

module.exports = router;